package com.echo.im.offlinePush.notify.impl;

import com.echo.im.offlinePush.notify.AbstractNotifyService;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @author: echo
 * @time: 2024-08-19
 */
@Service
public class EmailNotifyServiceImpl extends AbstractNotifyService {

    @Override
    public void doNotify(Long userId, String msg) {
        //TODO 查询用户邮箱，发送消息
        try {
            Thread.sleep(1, TimeUnit.SECONDS.ordinal());
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }

}
